package com.glela.goods.mapper;

import com.glela.goods.model.NewsType;
import com.glela.goods.model.vo.NewsVo;
import com.glela.goods.model.vo.TopNewsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper {

    List<TopNewsVo> getTopNews(@Param("pid") int pid, @Param("size") int size);

    List<NewsVo> getByTypeId(@Param("typeId") int typeId,@Param("start") int startIndex,@Param("end") int num);

    int getCountByTypeId(@Param("typeId") int typeId);

    List<NewsType> getNewComerCrashType();
}
